<?php
/**
 * Intreface DAO
 *
 * @version    $Id: TagDAO.class.php 11 2010-04-27 15:38:41Z richardjohnjensen@gmail.com $ 
 * @author: ${author} 
 * @date: 2010-04-08 12:18 
 */
interface TagDAO
{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return Tag 
	 */
	public function load($id);

	/**
	 * Get all records from table
	 */
	public function queryAll();
	
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	public function queryAllOrderBy($orderColumn);
	
	/**
 	 * Delete record from table
 	 * @param tag primary key
 	 */
	public function delete($tag);
	
	/**
 	 * Insert record to table
 	 *
 	 * @param Tag tag
 	 */
	public function insert($tag);
	
	/**
 	 * Update record in table
 	 *
 	 * @param Tag tag
 	 */
	public function update($tag);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByTemplate($value);

	public function queryByLabel($value);

	public function queryByUpdated($value);


	public function deleteByTemplate($value);

	public function deleteByLabel($value);

	public function deleteByUpdated($value);


}
?>